home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Personal Computer World 2009 February
/
PCWFEB09.iso
/
Software
/
Resources
/
Chat & Communication
/
Digsby build 37
/
digsby_setup.exe
/
lib
/
gui
/
video
/
webvideo.pyo
(
.txt
)
< prev
Wrap
Python Compiled Bytecode
|
2008-10-13
|
2KB
|
41 lines
# Source Generated with Decompyle++
# File: in.pyo (Python 2.5)
from __future__ import with_statement
import wx
from gui import skin
from gui.browser import Browser
from gui.toolbox import persist_window_pos
import stdpaths
from time import time
from logging import getLogger
log = getLogger('webvideo')
EMBED_WRAPPER = '<html><head><style type="text/css">\nbody {\n width: 99.9999%;\n margin: 0%;\n padding: 0%;\n overflow: auto;\n}\n</style></head><body><<CONTENT>></body></html>\n'
video_frame_style = wx.MINIMIZE_BOX | wx.SYSTEM_MENU | wx.CAPTION | wx.CLOSE_BOX | wx.CLIP_CHILDREN | wx.STAY_ON_TOP
video_frame_size = (544, 264)
class VideoChatWindow(wx.Frame):
def __init__(self, title, embed_tag, on_close = None):
wx.Frame.__init__(self, None, title = title, name = 'Web Video Chat Window', style = video_frame_style)
self.on_close = on_close
self.SetFrameIcon(skin.get('AppDefaults.TaskBarIcon'))
persist_window_pos(self)
self.SetClientSize(video_frame_size)
content = EMBED_WRAPPER.replace('<<CONTENT>>', embed_tag)
log.debug('opening video window with embed tag:')
log.debug(content)
self.browser = Browser(self, initialContents = content)
if on_close is not None:
self.Bind(wx.EVT_CLOSE, self.OnClose)
def OnClose(self, e):
e.Skip()
if self.on_close is not None:
self.on_close()